<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>编辑话题 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/teach.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery.min.js"></script>
    <script type="text/javascript">
        //全局变量
        var GV = {
            DIMAUB: "__ROOT__/",
            JS_ROOT: "__COMMJS__/"
        };
    </script>
</head>
<body>
<div class="b-page">
<include file="Public:header" />

<div class="b-zuopin">

    <div class="b-teachaddr yf-teach__setwidth yf-teach__addrnav">
        <a href="javascript:;" class="yf-teach-addr yf-teach-addrnow">当前位置:</a>
        <a href="__WEBURL__/index" class="yf-teach-addr">首页</a>
        <span>&gt;</span>
        <a href="__WEBURL__/teach/tlist/u/{$teachinfo.openuid}" class="yf-teach-addr">{$teachinfo.nickname}专栏</a>
        <span>&gt;</span>
        <a class="yf-teach-addr yf-teach-naddr">编辑话题</a>
    </div>
    <div class="b-zuopin__body yf-teach__setwidth">
        <div class="yf-teach__setinfo">
            <form name="form1" class="ajaxForm" action="__WEBURL__/teach/editteach" method="post">
                <div class="yf-teach__form">
                    <div class="yf-form__label">
                        信息标题:
                    </div>
                    <div class="yf-form__input">
                        <input type="text" name="title" value="{$data.title}" placeholder="点击添加话题标题">
                    </div>
                </div>
                <div class="yf-teach__form">
                    <div class="yf-form__label">
                        所属栏目:
                    </div>
                    <div class="yf-form__select">
                        <select name="type">
                            <option value="1" <eq name="data.type" value="1">selected</eq>>作品文章</option>
                            <option value="2" <eq name="data.type" value="2">selected</eq>>普通文章</option>
                        </select>
                    </div>
                </div>
                <div class="yf-teach__form">
                    <div class="yf-form__label">
                        话题分类:
                    </div>
                    <div class="yf-form__radio">
                    <foreach name="cat_info" item="cat">
                        <div class="yf-radio__list">
                            <input type="radio" name="catid" value="{$cat.catid}" <if condition="$key eq 0 || $data.catid eq $cat.catid">checked</if>>&nbsp;&nbsp;{$cat.catname}                        
                        </div>
                    </foreach>
                    </div>
                </div>
                <div class="yf-teach__textarea">
                    <script type="text/plain" id="content" name="content">{$data.content}</script><Form function="editor" parameter="content,basic,$data['content'],news"/>
                </div>
                <input type="hidden" name="teachid" value="{$data.teachid}">
                <div class="yf-teach__addbtn">
                    <button class="yf-addbtn__btn Ajax_submit_btn" >发布</button>
                    <span style="display: none;">系统于2015-10-15 15:05:59自动保存</span>
                </div>
            </form>
        </div>
    </div>
</div>

<include file="Public:footer" />
</div>
<script type="text/javascript" src="__COMMJS__/common.js"></script>
<script type="text/javascript" src="__COMMJS__/content_addtop.js"></script>
<script src="__JS__/jquery.common.js"></script>
<script src="__JS__/jquery.form.min.js"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script src="__JS__/teach.js"></script>
<script>
    $(document).ready(function(){

    });
</script>
</body>
</html>